<?
session_start();
/*require_once('../../model/login.php');
require_once('../../config/config.php');
$login_model = new Login_model();
$nip = $_POST['NIP'];
$res = $login_model->check_nip($nip, $pass);

while($row = mysql_fetch_array($res)) {
	$nip = $row['NIP'];
	$idrole = $row['ID_ROLE'];
	$_SESSION['nip'] = $nip;
	$_SESSION['role'] = $idrole;
	$role = $row['KETERANGAN'];
	if($role == 'Manager'){
		header ('location:reviewpekerjaan.php');
	}else{
		header ('location:daftarpekerjaan.php');
	}
}*/
if($_SESSION['ID_ROLE'] == 2):
		header ('location:reviewpekerjaan.php');
	elseif($_SESSION['ID_ROLE'] == 3):
		header ('location:tl_lihatpekerjaan.php');
	elseif($_SESSION['ID_ROLE'] == 4):
		header ('location:lihatpekerjaan.php');
		
		endif;
		
?>